#include "init.h"
int buffernum=0;
int test;
int8_t rxbuffer[1000];
int main(void)
{
    WDT_A->CTL = WDT_A_CTL_PW |             // Stop WDT
            WDT_A_CTL_HOLD;


        NVIC->ISER[0] |= UART_Init();


    while(1){
        test=handleRec(buffernum,rxbuffer);
        if(test==0)buffernum=0;
    }
}

void EUSCIA0_IRQHandler(void)
{
    buffernum=UART_IRQ(buffernum,rxbuffer);
}



